package com.gexiaobao.pigeon.app.model.bean

import android.os.Parcelable
import kotlinx.android.parcel.Parcelize

/**
 * @Author      : hxw
 * @Date        : 2023/3/30 14:50
 * @Describe    :
 */
@Parcelize
class BloodPigeonPicListInfoResponse(

    var lineageId: Int = 0,
    var imgOssObjKey: String = "",
    var title: String = "",
    var phone: String = "",
    var pigeonry: String = "",
    var imgUrl: String = "",
    var address: String = "",
    var description: String = "",
    var email: String = "",
    var imgUrlCover: String = "",
    var imgOssObjKeyCover: String = "",
    var list: ArrayList<ListInfo> = arrayListOf()

) : Parcelable {

    /**
     * 数据是否为空
     */
    fun isEmpty() = list == null || (list as List<*>).isEmpty()

    @Parcelize
    class ListInfo(

        var id: Int = 0,
        var userId: Int = 0,
        var name: String = "",
        var countryCode: String = "",
        var ringId: String = "",
        var sex: String = "",
        var featherColor: String = "",
        var eyePattern: String = "",
        var imgOssObjKey: String = "",
        var prizeInfo: String = "",
        var pigeonId: String = "",
        var imgUrl: String = "",

        ) : Parcelable

}